//
//  HomeViewController.swift
//  LSWeibo1
//
//  Created by 李明禄 on 2018/11/28.
//  Copyright © 2018 SocererGroup. All rights reserved.
//

import UIKit

class HomeViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()


        // Do any additional setup after loading the view.
    }
    
    override func setupUI() {
        super.setupUI()
//        navigationItem.leftBarButtonItem = UIBarButtonItem.init(
//            title: "好友",
//            style: .plain,
//            target: self,
//            action: #selector(clickFriend))
        
        navBarItem.leftBarButtonItem = UIBarButtonItem.init(
            title: "好友",
            normalColor: .darkGray,
            highlightedColor: .orange,
            target: self,
            action: #selector(clickFriend))
    }
    
    
    
    

}

extension HomeViewController {
    @objc func clickFriend() {
        
        let vc = DemoViewController()
        print("点击了朋友按钮")
        navigationController?.pushViewController(vc, animated: true)
    }
    
    
}


